View Javadoc
1   package edu.jiangxin.apktoolbox.swing.extend.plugin;
2   
3   import edu.jiangxin.apktoolbox.swing.extend.EasyPanel;
4   import edu.jiangxin.apktoolbox.utils.Utils;
5   
6   import java.io.File;
7   
8   public abstract class PluginPanel extends EasyPanel implements IPlugin {
9       @Override
10      public boolean isNeedPreChangeMenu() {
11          return true;
12      }
13  
14      @Override
15      public void preparePlugin(IPreparePluginCallback callBack) {
16          callBack.onPrepareStarted();
17      }
18  
19      @Override
20      public boolean isPluginNeedUnzip() {
21          return false;
22      }
23  
24      @Override
25      public String getPluginStartupCmd() {
26          String jarPath = Utils.getPluginDirPath() + File.separator + getPluginFilename();
27          return "java -jar \"-Duser.language=en\" \"-Dfile.encoding=UTF8\" \"" + jarPath + "\"";
28      }
29  }